package cabbage.model.logic;

import java.sql.SQLException;

import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;

import cabbage.database.idao.ICheckinDAO;
import cabbage.database.operations.CheckinDAO;
import cabbage.logic.i.ICheckinInfo;

public class CheckinInfo implements ICheckinInfo {
	
	private ICheckinDAO checkin;
	
	public CheckinInfo() {
		
	}
	
	@Override
	public JSONArray getCheckinBeanJSONArray2() throws SQLException, JSONException {
		checkin = new CheckinDAO();
		return checkin.getLastCheckins();
	}

}
